<#include "../../page.ftl" />
<#include "../../display.ftl" />
<table class="table  table-datatable table-gray check_table">
    <thead>
    <tr>
        <th style="width: 40px;"><input id="checkAll" type="checkbox" value=""></th>


        <th>姓名</th>
        <th>档案号</th>
        <th>联系电话</th>
        <th>卡别</th>

        <th>开始日期</th>
    <#--<th>结束日期</th>-->
        <th>体检卡号</th>
        <th>门诊ID号</th>
        <th>主要问题</th>
        <th>区域</th>
        <th>应上门</th>
        <th>余上门</th>
        <th>最近联系</th>
        <th>干预方式</th>
        <th>入会需求</th>

        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <#if vipXxbsTable.rows??>
        <#list vipXxbsTable.rows as vipXxb>
        <tr>
            <td><input name="ids" type="checkbox" value="${vipXxb.id?c}"></td>

            <td>${vipXxb.clientName!''}</td>
            <td>${vipXxb.vipId!''}</td>
            <td>${vipXxb.mobile!''}</td>
            <td>${vipXxb.packageName!''}</td>

            <td>${vipXxb.startTime!''}</td>
        <#--<td>${vipXxb.endTime!''}</td>-->
            <td>${vipXxb.tjId!''}</td>
            <td>${vipXxb.mzId!''}</td>
            <#if vipXxb.problem??>
                <td>
                <#--<div  class=ellipsis_div   style="width:50px;" title="${vipXxb.problem!''}">-->
                    <#list vipXxb.problem?split(",") as values>
                        <#if values_index == ((vipXxb.problem?split(","))?size - 1)>
                            <@display list=problemList value="${values!''}"/>
                        <#else>
                            <@display list=problemList value="${values!''}"/>,
                        </#if>
                    </#list>
                <#--</div>-->
                </td>
            <#else>
                <td>${vipXxb.problem!''}</td>
            </#if>
            <td>${vipXxb.address!''}</td>
            <td>${vipXxb.zgDoor!''}</td>
            <td>${vipXxb.syDoor!''}</td>
            <td>${vipXxb.meetTime!''}</td>
        <#--<td>${vipXxb.meetType!''}</td>-->
            <td>
                <@display list=interventionList value="${vipXxb.meetType!''}"/>
            </td>
            <td>${vipXxb.requirements!''}</td>

            <td>
                <a class="btn btn-orange btn-radio nopadding" onclick="return popView('${vipXxb.id?c}');"
                   title="详情"><i class="fa fa-file-text"></i></a>
                <a class="btn btn-green btn-radio nopadding" onclick="return popAddOrModify(${vipXxb.id?c});"
                   title="编辑"><i class="fa fa-edit"></i></a>

        </tr>
        </#list>
    </#if>
    </tbody>
</table>
<#if vipXxbsTable??>
    <@page table=vipXxbsTable formId="search_vipXxb_table"/>
</#if>

<#--
<style>
    .ellipsis_div{
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
    table {
        table-layout: fixed;
    }


    td,th {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        width: 100%;
    }

</style>
-->
